package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    /**
     * 根据id查询用户信息
     */
    @Select("select * from tb_user where id=#{userId}")
    User queryUserById(Long userId);
}
